//
//  HFHomeOriginalView.swift
//  HFWeChat
//
//  Created by 黄来峰 on 16/4/23.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class HFHomeOriginalView: UIView {
    
    override init(frame: CGRect) {
        
        super.init(frame: frame)
        setUpUI()
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //MARK: -设置UI界面
    private func setUpUI(){
        
        backgroundColor = RandomColor()
        //添加控件
        addSubview(headImageView)
        //设置约束
        headImageView.snp_makeConstraints { (make) -> Void in
            make.size.equalTo(CGSize(width: 35, height: 35))
            make.top.leading.equalTo(10)
        }
        
        
        
        
    }
    //懒加载控件
    private lazy var headImageView: UIImageView = {
        let headImgView = UIImageView(image: UIImage(named: "avatar_default"))
        return headImgView
    }()
    private lazy var nameLabel: UILabel = UILabel()
    
    
}
